package com.example.myproject.repository;

import com.example.myproject.model.Right;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface RightRepository extends JpaRepository<Right, Integer> {
    Optional<Right> findByUserName(String name);
}
